package com.example.demo.qy.model;

import com.example.demo.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.util.List;

@Entity
@Table(name = "weather")
public class Weather extends BaseEntity {

    @ApiModelProperty(value = "空气质量")
    private String airCondition;
    @ApiModelProperty(value = "城市")
    private String city;
    @ApiModelProperty(value = "感冒等级")
    private String coldIndex;
    @ApiModelProperty(value = "api更新时间")
    private Long apiUpdateTime;
    @ApiModelProperty(value = "api日期")
    private String date;
    @ApiModelProperty(value = "地区")
    private String distrct;
    @ApiModelProperty(value = "穿着")
    private String dressingIndex;
    @ApiModelProperty(value = "运动")
    private String exerciseIndex;

    @OneToMany(fetch = FetchType.LAZY)
    @ApiModelProperty(value = "温度列表")
    List<WeatherFuture> futureList;

    public List<WeatherFuture> getFutureList() {
        return futureList;
    }

    public void setFutureList(List<WeatherFuture> futureList) {
        this.futureList = futureList;
    }

    public String getAirCondition() {
        return airCondition;
    }

    public void setAirCondition(String airCondition) {
        this.airCondition = airCondition;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getColdIndex() {
        return coldIndex;
    }

    public void setColdIndex(String coldIndex) {
        this.coldIndex = coldIndex;
    }

    public Long getApiUpdateTime() {
        return apiUpdateTime;
    }

    public void setApiUpdateTime(Long apiUpdateTime) {
        this.apiUpdateTime = apiUpdateTime;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDistrct() {
        return distrct;
    }

    public void setDistrct(String distrct) {
        this.distrct = distrct;
    }

    public String getDressingIndex() {
        return dressingIndex;
    }

    public void setDressingIndex(String dressingIndex) {
        this.dressingIndex = dressingIndex;
    }

    public String getExerciseIndex() {
        return exerciseIndex;
    }

    public void setExerciseIndex(String exerciseIndex) {
        this.exerciseIndex = exerciseIndex;
    }
}
